package io.renren.modules.forYoung.service;

import io.renren.modules.forYoung.entity.ForYoungComment;
import io.renren.modules.forYoung.entity.ForYoungReply;
import io.renren.modules.forYoung.entity.ForYounyEntity;
import io.renren.modules.sys.entity.MysqlOssEntity;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface ForYounyService {
    List getMyRecommendList(Map<String, Object> params) throws UnsupportedEncodingException;

    Integer upload(Map<String, Object> param);

    MysqlOssEntity getImgById(Integer id);

    void saveData(ForYounyEntity forYounyEntity);

    ForYounyEntity getForyoungById(Long forYoungId);

    Long savaForYoungComment(ForYoungComment forYoungComment);

    void saveFirstComment(ForYounyEntity forYounyEntity);

    ForYounyEntity getForYoungEntiyById(Integer id,Long userId) throws UnsupportedEncodingException;

    int toLike(Map params);

    int toCollection(Map params);

    List<ForYounyEntity> getOurList(Map<String, Object> params) throws UnsupportedEncodingException;

    List<ForYoungComment> getCommentList(Map<String, Object> params) throws UnsupportedEncodingException;

    Integer saveReply(ForYoungReply forYoungReply);

    ForYoungComment getCommentById(int commentId);

    void updateComment(ForYoungComment forYoungComment);

    List<ForYoungReply> getReplyList(Map<String, Object> params) throws UnsupportedEncodingException;

    int toCommentLike(Map params);

    int toReplyLIke(Map params);

    List<ForYounyEntity> getOurFollowList(Map<String, Object> userId) throws UnsupportedEncodingException;

    List<ForYounyEntity> getListByDistance(Map<String, Object> params) throws UnsupportedEncodingException;

    List<ForYounyEntity> getMySchoolListByUserId(Map<String, Object> params) throws UnsupportedEncodingException;

    MysqlOssEntity getImgByName(String name);

    List getMyStudyShare(Map map);

    List getMyForYoung(Map map) throws UnsupportedEncodingException;

    List getSeachList(Map<String, Object> params) throws UnsupportedEncodingException;

    List getMyForYoungCollection(Map map) throws UnsupportedEncodingException;

    void delForYoung(Map map);
}
